package spring.framework.beans.factory.support;

import spring.framework.beans.BeansException;
import spring.framework.core.io.Resource;
import spring.framework.core.io.ResourceLoader;

/**
 * @author fun.pengzh
 * @class spring.framework.beans.factory.support.BeanDefinitionReader
 * @desc
 * @since 2021-10-17
 */
public interface BeanDefinitionReader {

    BeanDefinitionRegistry getRegistry();

    ResourceLoader getResourceLoader();

    void loadBeanDefinitions(Resource resource) throws BeansException;

    void loadBeanDefinitions(Resource... resources) throws BeansException;

    void loadBeanDefinitions(String location) throws BeansException;

    void loadBeanDefinitions(String... locations) throws BeansException;

}
